Skip to content

✨ Add support for pyproject.toml parsing to find app entrypoint#14

Merged
savannahostrowski merged 2 commits intomainfrom
use-pyproject
Jan 20, 2026
Merged

✨ Add support for pyproject.toml parsing to find app entrypoint#14
savannahostrowski merged 2 commits intomainfrom
use-pyproject

Conversation

@savannahostrowski
Copy link
Member

Closes #13

This PR adds support for parsing pyproject.toml to find the application entrypoint (along with a fixture to test against this). With these changes, the priority order is as follows:

  • fastapi.entryPoint - user has explicitly set this in VS Code settings
  • pyproject.toml - user has set [tool.fastapi] entrypoint
  • Attempt to automatically detect the entrypoint

I've also restructured extension.ts to make it more legible. All application discovery is now in appDiscovery.ts

@savannahostrowski savannahostrowski modified the milestone: 2026-Q1 Jan 15, 2026
Copy link
Member

@tiangolo tiangolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🚀

@savannahostrowski savannahostrowski merged commit 34bfbf5 into main Jan 20, 2026
5 checks passed
@savannahostrowski savannahostrowski deleted the use-pyproject branch January 20, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use also pyproject.toml entrypoint

2 participants